# Maintainer: Antonio Rojas <arojas@archlinux.org>

pkgname=maui-pix
_pkgname=pix
pkgver=3.0.1
pkgrel=1
pkgdesc='Image gallery application'
url='https://mauikit.org/'
arch=(loong64 x86_64)
license=(GPL3)
depends=(mauikit-filebrowsing mauikit-imagetools hicolor-icon-theme)
makedepends=(extra-cmake-modules)
groups=(maui)
source=(https://download.kde.org/stable/maui/$_pkgname/$pkgver/$_pkgname-$pkgver.tar.xz)
sha256sums=('07b7f9b463e79aba8f5b9da4631661bb8f7ff1b21a9fa50c309988d183f82eb0')

build() {
  cmake -B build -S $_pkgname-$pkgver
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
}
